/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.iamk.database;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author ThanhBình
 */
public class TestData extends DataPreprocessor {
    
    public void getAll() throws Exception {
        open();
        String strSQL="SELECT * FROM label";
        mStmt = mConnection.prepareStatement(strSQL);
        mRs = mStmt.executeQuery();
        while (mRs.next()) {
            System.out.println(mRs.getString(2));
        }
    }
    
    public static void main(String[] args) {
        try {
            TestData test=new TestData();
            test.getAll();
        } catch (Exception ex) {
            Logger.getLogger(TestData.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }
}
